package com.pig4cloud.pig.demo.feign.Entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;
import java.util.List;

@Data
public class User {
    @TableId(type = IdType.ASSIGN_ID)
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long id;

    private String username;

    private String password;

    private Integer isDeleted;

    private Integer isBanned;

    @TableField(fill = FieldFill.INSERT)
    private Date createdTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updatedTime;

    private String birthday;

    private String email;

    private String avatar;

    private Integer sex;

    private Long phone;

    private String idCard;

    private String introduce;

    private String work;

    private String nickName;

    private String account;

    private Float wallet;
    @TableField(fill = FieldFill.INSERT)
    public Date updatedPwdtime;
}
